﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Library/Site.master" AutoEventWireup="false" CodeFile="Permisos.aspx.vb" Inherits="Administracion_Permisos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<h1>
Permisos
</h1>

 <table>
<tr>
<td>
Seleccione el perfil al cual desea modificar los permisos
</td>
<td>
    <asp:DropDownList ID="ddrPerfiles" runat="server" AutoPostBack="True">
    </asp:DropDownList>
</td>
</tr>
</table> 
<h2>
Seleccione los permisos a aplicar de la lista
</h2>
    <asp:GridView ID="grdPermisos" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="codSubmodulo">
        <Columns>
            <asp:BoundField DataField="CodSubModulo" HeaderText="Cod." />
            <asp:BoundField DataField="Modulo" HeaderText="Módulo" />
            <asp:TemplateField HeaderText="SubMódulo">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" ToolTip='<%# Bind("url") %>' Text='<%# Bind("SubModulo") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Consultar">
                <EditItemTemplate>
                    <asp:CheckBox ID="chk1" runat="server" 
                        Checked='<%# Bind("Consultar") %>' />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="chkCon" runat="server" Checked='<%# Bind("Consultar") %>' 
                        Enabled="true" />Consultar
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Insertar">
                <EditItemTemplate>
                    <asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Bind("Insertar") %>' />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="chkIns" runat="server" Checked='<%# Bind("Insertar") %>' 
                        Enabled="true" />Insertar
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Editar">
                <EditItemTemplate>
                    <asp:CheckBox ID="CheckBox3" runat="server" Checked='<%# Bind("Editar") %>' />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="chkEd" runat="server" Checked='<%# Bind("Editar") %>' 
                        Enabled="true" />Editar
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Eliminar">
                <EditItemTemplate>
                    <asp:CheckBox ID="CheckBox4" runat="server" Checked='<%# Bind("Eliminar") %>' />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="chkEl" runat="server" Checked='<%# Bind("Eliminar") %>' 
                        Enabled="true" />Eliminar
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br />
    <asp:Button ID="Button1" runat="server" CssClass="boton" Text="Guardar" />
</asp:Content>

